//
//  HPUpdateService.m
//  LockTest
//
//  Created by ZhangBo on 2018/12/2.
//  Copyright © 2018 ZhangBo. All rights reserved.
//

#import "HPUpdateService.h"

@implementation HPUpdateService

- (void)updateUser:(HPUser *)user properties:(NSDictionary *)proprerties {
    @synchronized (user) {
        NSString *fn = proprerties[@"firstName"];
        if (fn != nil) {
            user.firstName = fn;
        }

        NSString *ln = proprerties[@"lastName"];
        if (ln != nil) {
            user.lastName = ln;
        }
    }
}

@end
